<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
<script type="text/javascript">

//【示例1】
var s1 = "abc";
var s2 = "def";
alert(s1+s2); 							// 字符串连接，返回字符串"abcdef"

//【示例2】
var s1 = "abc";
var s2 = s1.concat( "d", "e", "f" ); 	// 调用concat()连接字符串
alert( s2 ); 							// 返回字符串"abcdef"

</script>
</head>

<body>
</body>
</html> 
